package com.zmn.uac.common.info.apple;

import com.zmn.uac.common.info.UserAuthPhoneInfo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 类描述：苹果用户授权信息
 *
 * @author xujie
 * @since 2021/06/16 17:30
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("苹果用户授权信息")
@EqualsAndHashCode(callSuper = true)
public class AppleUserAuthInfo extends UserAuthPhoneInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @NotNull(message = "openId不能为空")
    @ApiModelProperty(value = "openId", required = true)
    private String openId;

    @NotNull(message = "identityToken不能为空")
    @ApiModelProperty(value = "identityToken", required = true)
    private String identityToken;

    @ApiModelProperty(value = "authorizationCode")
    private String authorizationCode;

    @ApiModelProperty(value = "用户状态")
    private Integer realUserStatus;

    @ApiModelProperty(value = "fullName")
    private String fullName;

    @ApiModelProperty(value = "注册入口", name = "entrance", required = true)
    private Integer entrance;

    @ApiModelProperty(value = "deviceId设备信息", notes = "默认为 UTF-8")
    private String deviceId;
}
